package org.BooCrack.bookstore.model.entity.custom;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.BooCrack.bookstore.model.entity.Orders;
import org.BooCrack.bookstore.model.entity.OrderDetail;
import org.BooCrack.bookstore.model.entity.OrderShipping;

import java.util.List;

/**
 * 自定义Order实体，包括订单物流信息，订单详情
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderCustom {


    private String orderId;

    private Orders order;

    private OrderShipping orderShipping;
    /**
     * 一个订单包括多个订单信息
     */
    private List<OrderDetail> orderDetails;


}
